﻿using NUnit.Framework;

namespace Safal.IncidentTracker.Tests
{
    [TestFixture]
    public class RouteTests
    {
        [Test]
        public void TestStartRoute()
        {
            UnitTestHelpers.TestRoute("~/", new { controller = "Incidents", action = "List" });
        }
        [Test]
        public void TestPage2Route()
        {
            UnitTestHelpers.TestRoute("~/Page2", new { controller = "Incidents", action = "List", page = 2 });
        }
        [Test]
        public void TestEditRoute()
        {
            UnitTestHelpers.TestRoute("~/Incidents/Edit/2", new { controller = "Incidents", action = "Edit", id = 2 });
        }
        [Test]
        public void TestCreateRoute()
        {
            UnitTestHelpers.TestRoute("~/Incidents/Create", new { controller = "Incidents", action = "Create" });
        }
        [Test]
        public void TestDeleteRoute()
        {
            UnitTestHelpers.TestRoute("~/Incidents/Delete", new { controller = "Incidents", action = "Delete" });
        }
        [Test]
        public void TestSearchRoute()
        {
            UnitTestHelpers.TestRoute("~/Incidents/Search", new { controller = "Search", action = "Search" });
        }
        
    }
}
